package com.jk.eyedemo.fragment

import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import com.jk.eyedemo.R
import com.jk.eyedemo.base.BaseFragment
import com.jk.eyedemo.base.tabsId
import com.jk.eyedemo.mvp.contract.HotContract
import com.jk.eyedemo.mvp.model.HotCategory
import com.jk.eyedemo.showToast

/**
 * @Author:         jk
 * @CreateDate:     2018/11/28 20:22
 * @Description:   描述:
 */

class HotFragment : BaseFragment(tabId = tabsId[2]), HotContract.IHotFragmentView {


    init {

    }


    override fun onError() {
        showToast("网络错误")
    }

    override fun setTabAndFragment(hotCategory: HotCategory) {

    }

    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
        return inflater.inflate(R.layout.fragment_hot, null)
    }


}

